package com.example.demo.entity;


import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.ORDER;

import java.util.Date;
import java.math.BigDecimal;

import javax.persistence.*;


@Data
@Entity
@Table(name = "table_equipment",schema = "")
public class TableEquipment extends  PageEntity {

  //null
  @Id
  @KeySql(useGeneratedKeys = true,sql = "SELECT @@IDENTITY",order = ORDER.AFTER)
  @Column(name = "id")
  private Long id;

  //null
  @Column(name = "equipment_name")
  private String equipmentName;

  //设备年龄
  @Column(name = "equipment_age")
  private String equipmentAge;

  //null
  @Column(name = "equipment_startime")
  private Date equipmentStartime;

  //设备结束时间
  @Column(name = "equipment_endtime")
  private Date equipmentEndtime;


}
